::. http://roachfiend.com/archives/2004/12/08/how-to-create-firefox-extensions/
::. add C:\Program Files\7Zip\7z.exe to your PATH, run this from extension's root dir
set x=%cd%
md build\chrome
cd chrome
7z a -tzip "%x%.jar" * -r -mx=0
move "%x%.jar" ..\build\chrome
cd ..
xcopy skin build\skin\
copy icon.png build
copy chrome.jar.manifest build\chrome.manifest
copy install.jar.rdf build\install.rdf
cd build
7z a -tzip "%x%.xpi" * -r -mx=9
move "%x%.xpi" ..\
cd ..
rd build /s/q